package com.xique.door.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.xique.common.core.web.domain.AjaxResult;
import com.xique.door.bean.domain.fenqiao.Community;
import com.xique.door.bean.request.fenqiao.CommunityPersonInfoRequest;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

/**
 *
 */
public interface CommunityService extends IService<Community> {

    /**
     * 添加人员信息
     * @param community
     * @return
     */
    AjaxResult addPersonInfo(List<Community> community);

    /**
     * 分页查询人员信息
     * @param request
     * @return
     */
    AjaxResult selectPersonInfo(CommunityPersonInfoRequest request);

    /**
     * 批量删除人员
     * @param ids
     * @return
     */
    AjaxResult deletePersonInfo(Long[] ids);

    /**
     * 更新人员信息
     * @param community
     * @return
     */
    AjaxResult updatePersonInfo(List<Community> communitys);

    /**
     * 导出功能
     * @param request
     */
    void export(HttpServletResponse response,CommunityPersonInfoRequest request) throws IOException;

    /**
     * 查询具体人员及绑定关系
     * @param id
     * @return
     */
    AjaxResult selectDetail(Long id);
}
